/*
 * @Author: error: error: git config user.name & please set dead value or install git && error: git config user.email & please set dead value or install git & please set dead value or install git
 * @Date: 2024-12-10 19:57:13
 * @LastEditors: error: error: git config user.name & please set dead value or install git && error: git config user.email & please set dead value or install git & please set dead value or install git
 * @LastEditTime: 2024-12-11 14:22:50
 * @FilePath: /vue-element-admin/src/api/retailServicePlan.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import request from '@/utils/request'

/*
* 服务方案
*  */

export const retailAshUrnListQuery = (params) => {
  return request({
    url: `/retailAshUrn/listQuery/listQuery?pageNum=${params.pageNum ? params.pageNum : 1}&pageSize=${params.pageSize ? params.pageSize : 10}&id=${params.id ? params.id : ''}&name=${params.name ? params.name : ''}`,
    method: 'get'
  })
}

export const retailAshUrnList = (params) => {
  return request({
    url: `/retailAshUrn/list?id=${params.id ? param.id : ''}&name=${params.name ? params.name : ''}`,
    method: 'get'
  })
}

export const retailAshUrnGetEntityById = (id) => {
  return request({
    url: `/retailAshUrn/getEntityById/${id}`,
    method: 'get'
  })
}
export const retailAshUrnAdd = (data) => {
  return request({
    url: '/retailAshUrn/add',
    method: 'post',
    data
  })
}

export const retailAshUrnUpdate = (data) => {
  return request({
    url: '/retailAshUrn/update',
    method: 'put',
    data
  })
}

export const retailAshUrnRemove = (id) => {
  return request({
    url: `/retailAshUrn/delete?id=${id}`,
    method: 'delete'
  })
}
